package cn.zz.veggie.model.domain;

import cn.zz.comm.mybaits.types.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * 订单明细表(OrderItem)实体类
 *
 * @author zhongq
 * @since 2024-05-25 16:44:09
 */
@Getter
@Setter
public class OrderInfo extends BaseEntity {
    private Integer orderId;
    private Integer productId;
    private Integer quantity;
    private Integer shipped;
    private Integer price;
    private Integer amount;
    private String remark;

    public Integer calcAmount(){
        return shipped * price / 10 ;
    }

}